package com.example.demo.common;

/**
 * 系统常量
 * Created by dsp on 2016/9/21.
 */
public interface Constants {
    /**
     * mq已发送
     */
    String MQ_SEND_SUCCESSFUL = "0";

    /**
     * 逻辑删除
     */
    String DEL_LOGIC_NORMAL = "0";   //正常
    String DEL_LOGIC_DELETE = "1";   //删除

    /**
     * 正常
     */
    int RESPONSE_CODE_200 = 200;
    /**
     * 参数错误
     */
    int RESPONSE_CODE_400 = 400;

    int RESPONSE_CODE_404 = 404;

    int RESPONSE_CODE_405 = 405;

    int RESPONSE_CODE_401 = 401;

    int RESPONSE_CODE_403 = 403;
    /**
     * 服务器未知错误
     */
    int RESPONSE_CODE_500 = 500;

    String RESPONSE_MESSAGE_200 = "success";

    String RESPONSE_MESSAGE_400 = "parameter error";

    String RESPONSE_MESSAGE_404 = "resource not found";

    String RESPONSE_MESSAGE_405 = "No resource method found for POST";

    String RESPONSE_MESSAGE_401 = "params error";

    String RESPONSE_MESSAGE_500 = "server error";

    /**
     * 数据库错误
     */
    int RESPONSE_CODE_600 = 600;

    String RESPONSE_MESSAGE_600 = "数据库操作过程错误";

    int RESPONSE_CODE_601 = 601;

    String RESPONSE_MESSAGE_601 = "数据库记录已存在";

    int RESPONSE_CODE_602 = 602;

    int RESPONSE_CODE_603 = 603;

    String RESPONSE_MESSAGE_602 = "操作的记录不存在";

    String RESPONSE_MESSAGE_603 = "被扫描的对象不存在";

    /**
     * 登录提示
     */
    int RESPONSE_CODE_300 = 300;

    String RESPONSE_MESSAGE_300 = "请先登录";
    /**
     * 用户信息不存在
     */
    int RESPONSE_CODE_301 = 301;

    String RESPONSE_MESSAGE_301 = "用户信息不存在";

    /**
     * RedisKey
     */
    String REDISKEY = "test:redis:";
}
